package com.want.repository;

import com.want.domain.entity.WebConfig;
import org.springframework.data.r2dbc.repository.Query;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Mono;

/**
 * @author WangZhiJian
 * @since 2021/12/23
 */
@Repository
public interface WebConfigRepository extends ReactiveCrudRepository<WebConfig,Integer> {

    @Query("select * from web_config limit 1")
    Mono<WebConfig> selectWebConfig();
}
